<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" ValidateRequest="false" AutoEventWireup="true" CodeFile="ServiceProviderAdd.aspx.cs" Inherits="ServiceProviderAdd" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table>
        <tr>
            <td style="width: 710px">
                <asp:ValidationSummary ID="vsValidation" runat="server" />            
                <br />
                <asp:Label ID="lblResult" runat="server" Visible="False" ForeColor="Red"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 710px">
                <B>Details</B>
            </td>
        </tr>
        <tr>
            <td style="width: 710px; height: 182px">
                &nbsp;
                <table>
                    <tr>
                        <td>
                            Name
                        </td>
                        <td>
                            *                        
                        </td>
                        <td style="width: 492px">
                            <asp:TextBox ID="txtName" runat="server" onkeypress="return ValidateKey()"/>
                            <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="Name is Mandatory" ControlToValidate="txtName">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Service Provider Type
                        </td>
                        <td>
                            *
                        </td>
                        <td style="width: 492px">
                            <asp:TextBox ID="txtSPT" runat="server" onkeypress="return ValidateKey()"/>
                            <asp:RequiredFieldValidator ID="rfvSPT" runat="server" ErrorMessage="Service Provider Type is Mandatory" ControlToValidate="txtSPT">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            System Name
                        </td>
                        <td>
                            *
                        </td>
                        <td style="width: 492px">
                            <asp:TextBox ID="txtSystemName" runat="server" onkeypress="return ValidateKey()"/>
                            <asp:RequiredFieldValidator ID="rfvSystemName" runat="server" ErrorMessage="System Name is Mandatory" ControlToValidate="txtSystemName">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Public Key
                        </td>
                        <td>
                            *
                        </td>
                        <td style="width: 492px">
                            <asp:TextBox ID="txtPublicKey" runat="server" Width="445px"/>
                            <asp:RequiredFieldValidator ID="rfvPublicKey" runat="server" ErrorMessage="Public Key is Mandatory" ControlToValidate="txtPublicKey">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 34px">
                            Web Service URL
                        </td>
                        <td style="height: 34px">
                            *
                        </td>
                        <td style="width: 492px; height: 34px">
                            <asp:TextBox ID="txtWebServiceURL" runat="server" Width="445px" onkeypress="return ValidateKey()"/>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtWebServiceURL"
                                ErrorMessage="URL is not valid" ValidationExpression="http(s)?://([\w-]+(\.)*)+[\w-]+(/[\w- ./?%&=]*)?">*</asp:RegularExpressionValidator><asp:RequiredFieldValidator ID="rfvWebserviceURL" runat="server" ErrorMessage="Webservice URL is Mandatory" ControlToValidate="txtWebServiceURL">*</asp:RequiredFieldValidator>&nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="width: 710px">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 710px">
                Contact Details
            </td>
        </tr>
        <tr>
            <td style="width: 710px">
                &nbsp;
                <table>
                    <tr>
                        <td>
                            Contact Name
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactName" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contact Address 1
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactAdd1" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contact Address 2
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactAdd2" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contact City
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactCity" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contact Province                            
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactProvince" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contact Postcode
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactPostcode" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contact Country
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactCountry" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contact Phone
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactPhone" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contact Fax    
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactFax" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contact Email
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactEmail" runat="server" onkeypress="return ValidateKey()"/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="width: 710px">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 710px">
                Encryption 
            </td>
        </tr>
        <tr>
            <td style="width: 710px">
                &nbsp;
                <table>
                    <tr>
                        <td>
                            Encryption Type
                        </td>
                        <td>
                                                    
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlEncryption" runat="server"/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="width: 710px">
                &nbsp;            
            </td>
        </tr>
        <tr>
            <td style="width: 710px">
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" CausesValidation="False"/> <asp:Button ID="btnSave" Text="Submit" runat="server" OnClick="btnSave_Click" />
            </td>
        </tr>
    </table>



</asp:Content>

